#include <iostream>
using namespace std;
class Person{
private:
    string p_name;
public:
    Person(string n_m){
        p_name = n_m;
    };
    virtual void work()=0;
    virtual ~Person(){};
};

class Worker:public Person{
private:
    int age;
public:
    Worker(string name,int a):Person(name)
    {
        age = a;
    }
    virtual void work()
    {
        cout<<"work work!"<<endl;
    }
    virtual ~Worker(){};
};
int main() {
    Person *p = new Worker("liushuai",2);
    p->work();
    delete p;
    return 0;
}